package qf.hsw.testadmin.service.impl;

import org.springframework.stereotype.Service;
import qf.hsw.testadmin.entity.SysUser;
import qf.hsw.testadmin.mapper.UserMapper;
import qf.hsw.testadmin.service.UserService;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;
    @Override
    public SysUser SelectUserById(Long userId) {
        return userMapper.SelectUserById(userId);
    }

    @Override
    public SysUser SelectUserByName(String userName) {
        return userMapper.SelectUserByName(userName);
    }

    @Override
    public int insert(SysUser sysUser) {
        return userMapper.insert(sysUser);
    }


}
